import { defineStore } from 'pinia';
import { computed, ref } from 'vue';

export const useBannerStore = defineStore('banner', () => {
  const banners = ref(['111', '222']);
  const doubleB = computed(() => {
    return banners.value.concat(['333']);
  });

  const getBanners = async () => {
    banners.value = [];
  };

  return {
    banners,
    doubleB,
    getBanners,
  };
});
